﻿<Window x:Class="TrackIT.ReportWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:my="clr-namespace:TrackIT.Common;assembly=TrackIT.Common"
        Title="Report" Height="111" Width="521" WindowStyle="None" AllowsTransparency="True" 
        WindowStartupLocation="CenterScreen" ShowInTaskbar="False" Background="Transparent" Visibility="Hidden" 
        MouseLeftButtonDown="Window_MouseLeftButtonDown" KeyUp="Window_KeyUp" Initialized="Window_Initialized">
    <Window.Resources>        
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="theme.xaml" />
                <ResourceDictionary>
                    <ObjectDataProvider MethodName="GetValues"
                        ObjectType="{x:Type sys:Enum}"
                        x:Key="ReportTypes">
                        <ObjectDataProvider.MethodParameters>
                            <x:Type TypeName="my:ReportType" />
                        </ObjectDataProvider.MethodParameters>
                    </ObjectDataProvider>
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Border Padding="0" CornerRadius="30" OverridesDefaultStyle="False" Opacity=".9">
        <Border.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="Black" Offset="0.5" />
                <GradientStop Color="#FF3D3D3D" Offset="0" />
                <GradientStop Color="#FF3D3D3D" Offset="1" />
            </LinearGradientBrush>
        </Border.Background>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="20" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="20" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="10" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            
            <Label Grid.Column="1" Grid.Row="1" Content="Report type" HorizontalAlignment="Right" 
                   VerticalAlignment="Center" FontSize="20" FontFamily="Segoe UI" />

            <ComboBox Grid.Column="3" Grid.Row="1" FontSize="20" 
                      ItemsSource="{Binding Source={StaticResource ReportTypes}}"                       
                      SelectedItem="{Binding Path=SelectedReportType, Mode=TwoWay}">
                
            </ComboBox>
            
            <Button Grid.Column="3" Grid.Row="3" Content="Create" FontSize="20" FontFamily="Segoe UI" 
                    Command="{Binding CreateReportCommand}" Name="CreateReportButton"/>
        </Grid>
    </Border>
</Window>
